package com.sdyc.ndmp.cls.protocol;

import java.lang.reflect.Proxy;

/**
 * <pre>
 *
 * Created by zhenqin.
 * User: zhenqin
 * Date: 16/3/3
 * Time: 13:57
 * Verdor: NowledgeData
 * To change this template use File | Settings | File Templates.
 *
 * </pre>
 *
 * @author zhenqin
 */
public class ProtocolFactory {




    public static SentenceKeywordProtocol newAvroClientInstance(String host, int port) {
        return (SentenceKeywordProtocol) Proxy.newProxyInstance(
                SentenceKeywordProtocol.class.getClassLoader(),
                new Class[]{ SentenceKeywordProtocol.class },
                new ProtocolProxy());
    }





}
